package com.ganyu.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ganyu.domain.ResponseResult;
import com.ganyu.domain.entity.Link;
import com.ganyu.domain.vo.AdminAddLinkVo;
import com.ganyu.domain.vo.AdminLinkVo;
import com.ganyu.domain.vo.LinkListVo;

/**
 * DATA: 2022/8/30
 * Author: 晨夕
 */

public interface LinkService extends IService<Link> {
    //友链
    ResponseResult<LinkListVo> getAllLink();

    //获取友链列表
    ResponseResult getLinkList(Integer pageNum , Integer pageSize,String name,String status);

    //添加友链
    ResponseResult addLinkList(AdminAddLinkVo adminAddLinkVo);

    //根据id查询友链
    ResponseResult getLinkById(Long id);

    //修改友链
    ResponseResult updateLink(AdminLinkVo adminLinkVo);

    //删除友链
    ResponseResult deleteLink(Long[] id);
}
